package org.blog.dao;

import org.apache.ibatis.annotations.Mapper;
import org.blog.entity.Message;
import org.blog.entity.param.MessageParam;
import org.blog.entity.vo.MessageVO;

import java.util.List;
import java.util.Map;

@Mapper
public interface MessageMapper {
    int deleteByPrimaryKey(Integer messageId);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer messageId);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> getMessages(MessageParam param);

    List<MessageVO> getMessageVOs();

    List<Message> getMessages(Map<String, Object> map);
}